//用户模块
export default {
    namespaced:true,
    state(){
        return{
            profile:{
              phone_number: "",
              password: "",
              islogin: false,//登录状态
              token: '',
              cookies:'',
            },
        }
    },
    mutations:{
        register(state, provider) {
            state.profile.islogin = true;
            state.profile.phone_number = provider
            console.log(state)
        },
        logout(state){
            state.profile.islogin = false;
            state.profile.phone_number = ''
        }
    },
};